import React from 'react'
import {withLoading} from '../hoc'
import Button from "./Button"

const QueryButton = ({ isLoading, onClick, className = '', children }) => {
  return (
    <div>
      <Button className={className} isLoading={isLoading} onClick={onClick}>{children}</Button>
    </div>
  )
}

export default withLoading(QueryButton)
